package org.springframework.security.config.annotation.web.configuration;

import org.springframework.context.annotation.Import;
import org.springframework.security.config.annotation.authentication.configuration.EnableGlobalAuthentication;

import java.lang.annotation.*;

/**
 * @author Dillon
 * @date 2024/7/15
 * @slogan 致敬大师 致敬未来的你
 * @desc springSecurity 开启自定义安全配置注解
 * 默认使用spring中默认开启的过滤器链其实以满足需求，这里可以开启debug模式，进行调试
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@Documented
@Import({WebSecurityConfiguration.class, SpringWebMvcImportSelector.class, OAuth2ImportSelector.class,
		HttpSecurityConfiguration.class})
@EnableGlobalAuthentication
public @interface EnableWebSecurity {

	/**
	 * 是否开启debug模式
	 *
	 * @return 设置值
	 */
	boolean debug() default false;

}
